+Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+ g_node_depth is broken, and that it's not worth being consistent
+ with it.
+
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
+Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+ g_node_depth is broken, and that it's not worth being consistent
+ with it.
+
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
+Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+ g_node_depth is broken, and that it's not worth being consistent
+ with it.
+
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
+Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+ g_node_depth is broken, and that it's not worth being consistent
+ with it.
+
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
+Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+ g_node_depth is broken, and that it's not worth being consistent
+ with it.
+
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
+Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+ g_node_depth is broken, and that it's not worth being consistent
+ with it.
+
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
+Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
+ g_node_depth is broken, and that it's not worth being consistent
+ with it.
+
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
* @tree_store: A #GtkTreeStore
* @iter: A valid #GtkTreeIter
*
- * Returns the depth of @iter. This will be 1 for anything on the root level, 2
+ * Returns the depth of @iter. This will be 0 for anything on the root level, 1
* for anything down a level, etc.
*
* Return value: The depth of @iter
g_return_val_if_fail (GTK_IS_TREE_STORE (tree_store), 0);
g_return_val_if_fail (VALID_ITER (iter, tree_store), 0);
- return g_node_depth (G_NODE (iter->user_data)) - 1;
+ return g_node_depth (G_NODE (iter->user_data)) - 2;
}
-
/**
* gtk_tree_store_clear:
* @tree_store: @ #GtkTreeStore